package org.study.opensearch.boot;

/**
 * 使用该示例是，需要引入如下依赖：
 * <pre>
 *     <dependency>
 *             <groupId>org.opensearch</groupId>
 *             <artifactId>opensearch-testcontainers</artifactId>
 *             <version>2.1.3</version>
 *             <scope>test</scope>
 *         </dependency>
 *         <dependency>
 *             <groupId>org.opensearch.client</groupId>
 *             <artifactId>spring-data-opensearch-testcontainers</artifactId>
 *             <version>${opensearch-starter.version}</version>
 *             <scope>test</scope>
 *         </dependency>
 *         <dependency>
 *             <groupId>org.opensearch.client</groupId>
 *             <artifactId>spring-data-opensearch-test-autoconfigure</artifactId>
 *             <version>${opensearch-starter.version}</version>
 *             <scope>test</scope>
 *         </dependency>
 *         <dependency>
 *             <groupId>org.springframework.boot</groupId>
 *             <artifactId>spring-boot-testcontainers</artifactId>
 *             <scope>test</scope>
 *         </dependency>
 * </pre>
 */
public class OpensearchContainerStarter {
    /*public static void main(String[] args) {
        SpringApplication.from(OpenSearchBootApplication::main)
                .with(ContainerConfig.class)
                .run(args);
    }

    @TestConfiguration(proxyBeanMethods = false)
    static class ContainerConfig {
        @Bean
        @ServiceConnection
        OpensearchContainer<?> opensearchContainer() {
            return new OpensearchContainer<>("opensearchproject/opensearch:3.0.0");
        }
    }*/
}
